extends Control


onready var timer = $Timer


func _ready():
	self.hide()


func _physics_process(delta):
	# 长按空格进行显示这个节点
	if Input.is_action_just_pressed("ui_accept"):
		timer.start(0.33)
	# 松开则隐藏
	elif Input.is_action_just_released("ui_accept"):
		timer.stop()
		self.hide()


func _on_Timer_timeout():
	self.show()
